#region History

/* --------------------------------------------------------------------------------
 * Client Name: Bd Market Ltd.
 * Project Name: BdMarket
 * Module: App.Web.ViewModels 
 * Name: Content.cs
 * Purpose: ViewModel class for Content
 *                   
 * Author: Md. Hassanur Rahman
 * Language: C# SDK Version 4.0
 * --------------------------------------------------------------------------------
 * Change History:
 * Version: 1.0    MHR  05/31/2012
 * Description: Initial Development
 * -------------------------------------------------------------------------------- */

#endregion

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;


namespace App.Web.ViewModels
{
    [Serializable]
	public class ContentViewModel : BaseViewModel
	{	
        /// <summary>
		/// Gets or sets the ID
		/// </summary>
        public int ID { get; set;}
            
        [Required(ErrorMessage= "Please Enter a Title")]
        [StringLength(255, ErrorMessage = "The {0} can be maximum {1} characters long.")]
        [Display(Name = "Title")] 
		public String Title	{ get; set; }
            
        [Required(ErrorMessage= "Please Enter a Description")]
        [StringLength(8000, ErrorMessage = "The {0} can be maximum {1} characters long.")]
        [Display(Name = "Description")]
        [DataType(DataType.MultilineText)]
		public String Description	{ get; set; }
            
        [StringLength(1000, ErrorMessage = "The {0} can be maximum {1} characters long.")]
        [Display(Name = "Summery")] 
		public String Summery	{ get; set; }

        [Required] 
        [Display(Name = "Modified By")] 
        public int ModifiedBy { get; set;}
            
        //[Required(ErrorMessage= "Please Select Created Date")]
        //[Display(Name = "Created Date")] 
        //public String Created	{ get; set; }
            
        //[Required(ErrorMessage= "Please Select Modified Date")]
        //[Display(Name = "Modified Date")] 
        //public String Modified	{ get; set; }

        //[Required(ErrorMessage = "Please Enter a url")]
        //[StringLength(255, ErrorMessage = "The {0} can be maximum {1} characters long.")]
        //[Display(Name = "Url")]
        //public String Url { get; set; }
	}
}

